package cn.edu.imau.zy.system.feign;

import cn.edu.imau.zy.common.constant.ServiceNameConstants;
import cn.edu.imau.zy.common.core.domain.R;
import cn.edu.imau.zy.common.core.entity.system.SysDept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户 Feign服务层
 */
@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteDeptService
{
    @GetMapping("dept/get/{deptId}")
    SysDept selectSysDeptByDeptId(@PathVariable("deptId") long deptId);

    /**
     * 查询所有教学系列表
     */
    @GetMapping("dept/list/teachl")
    R listTeachl();
}
